{config_load file="$language/lang_$language.conf" section="index"}
{config_load file="$language/lang_$language.conf" section="product_filter"}
{if $error!=''}
<div class="red">{$error}</div><br /><br />
{/if}
{if $KEYWORDS}<h1 style="display:inline">{$KEYWORDS}</h1>{/if}
{if $filter_request}
	<h1 style="display:inline">{#you_search#} <em>{$filter_request}</em></h1>
{/if}
{*if $FILTER_SEARCH}<h1 style="display:inline">{$FILTER_SEARCH}</h1>{/if*}
{if $TITLE}<h2>{$TITLE}</h2>{/if}
{$TAG_COUNT}
{if $CATEGORIES_IMAGE !='' || $CATEGORIES_DESCRIPTION !='' || $CATEGORIES_HEADING_TITLE !=''}
	<div class="db">
		{if $CATEGORIES_IMAGE}
			<img src="{$CATEGORIES_IMAGE}" alt="{$CATEGORIES_IMAGE_ALT}" {$CATEGORIES_IMAGE_DIMENSION} title="{$CATEGORIES_NAME}" class="fl p_lr_5" />
		{/if}
		{if $CATEGORIES_HEADING_TITLE !=''}<h1>{$CATEGORIES_HEADING_TITLE}</h1><br />{/if}
		{if $CATEGORIES_DESCRIPTION}{$CATEGORIES_DESCRIPTION}<br /><br />{/if}
	</div>	
	<br style="clear:both" />
{/if}
{if $MANUFACTURERS_DESCRIPTION !=''}
	<div class="db">
		{if $MANUFACTURERS_IMAGE != ''}
			<img src="{$MANUFACTURERS_IMAGE}" alt="Picture - {$MANUFACTURERS_NAME}" title="{$MANUFACTURERS_NAME}" class="fl p_lr_5" />
		{/if}
		{if $MANUFACTURERS_NAME != ''}
			<h1>{$MANUFACTURERS_NAME}</h1><br />
		{/if}
		{$MANUFACTURERS_DESCRIPTION}<br /><br />
	</div>	
<br style="clear:both" />
{/if}

{if $MANUFACTURER_DROPDOWN || $MULTISORT_DROPDOWN}
	{$MANUFACTURER_DROPDOWN}
	{$MULTISORT_DROPDOWN}
	<br class="clearfix" /><br />
{/if}
{if $PRODUCTS_PER_SITE || $PRODUCTS_SORTBY || $PRODUCTS_VIEW_AS}
	<div class="float_wrapper clearfix">
		{$PRODUCTS_PER_SITE} {$PRODUCTS_SORTBY} {$PRODUCTS_VIEW_AS}
	</div>
{/if}

<section>
{if !$cross_selling && !$product_filter_list}
	<ul id="{if $ONLY_ONE == 'only_one'}product_listing_one{else}{$CLASS}{/if}" class="product_listing_gallery">
		{foreach name=aussen item=module_data from=$module_content}
			<li class="{$module_data.COL_WIDTH} {if $module_data.COL_CLASS || $module_data.COL_SPECIAL}{$module_data.COL_CLASS}{$module_data.COL_SPECIAL}{/if} gallery_hover_item">
	            {if $module_data.PRODUCTS_NAME}
					{if $module_data.PRODUCTS_PROXIMITY !=''}
						<div class="ac" style="background-color:{$module_data.PRODUCTS_PROXIMITY_COLOR}">
							{#text_proximity#}{$module_data.PRODUCTS_PROXIMITY}
						</div>
					{/if}
					<h3 class="listing_h3 border_top_radius_6">
						{if $module_data.PRODUCTS_REVIEWS}<div class="right product_listing_gallery_review">{$module_data.PRODUCTS_REVIEWS}</div>{/if}
						<a class="tooltip" href="{$module_data.PRODUCTS_LINK}" title="{$module_data.PRODUCTS_NAME_ALT}">
							{$module_data.PRODUCTS_NAME}
						</a>
					</h3>
				{/if}
				<div class="product_listing_gallery_image">
				<a class="tooltip" href="{$module_data.PRODUCTS_LINK}" title="{$module_data.PRODUCTS_IMAGE_ALT}">
						<img class="img_border box_shadow" src="{$module_data.PRODUCTS_IMAGE}" {$module_data.PRODUCTS_IMAGE_DIMENSION} alt="{$module_data.PRODUCTS_IMAGE_ALT}" title="{$module_data.PRODUCTS_IMAGE_ALT}" />
					</a>
				</div>

				{if $module_data.PRODUCTS_DESCRIPTION || $module_data.PRODUCTS_MANUFACTURER_IMG || $module_data.PRODUCTS_MANUFACTURER_NAME}
					<div class="product_listing_gallery_detail_cat">
						{$module_data.PRODUCTS_DESCRIPTION}
						{if $module_data.PRODUCTS_MANUFACTURER_IMG || $module_data.PRODUCTS_MANUFACTURER_NAME}
							{if $module_data.PRODUCTS_MANUFACTURER_URL}
								<a href="{$module_data.PRODUCTS_MANUFACTURER_URL}" target="_blank" title="{$module_data.PRODUCTS_MANUFACTURER_NAME}">{/if}
							{if $module_data.PRODUCTS_MANUFACTURER_IMG}
									<img class="tooltip" title="{if $module_data.PRODUCTS_MANUFACTURERS_DESCRIPTION != ''}{$module_data.PRODUCTS_MANUFACTURERS_DESCRIPTION}{else}{$module_data.PRODUCTS_MANUFACTURER_NAME}{/if}" src="{$module_data.PRODUCTS_MANUFACTURER_IMG}" alt="{$module_data.PRODUCTS_MANUFACTURER_NAME}" /><br />
							{/if}
								{$module_data.PRODUCTS_MANUFACTURER_NAME}
							{if $module_data.PRODUCTS_MANUFACTURER_URL}</a>{/if}
						{/if}
					</div>
				{/if}
				{if $module_data.CATEGORIES_NAME}
					<div class="ac">
						{#text_category#}<a href="{$module_data.CATEGORIES_LINK}">{$module_data.CATEGORIES_NAME}</a><br />
					</div>
				{/if}
				<div class="product_listing_gallery_price">
					{if $module_data.PRODUCTS_STOCK_IMG}<span class="fs85">{#text_stock#} {$module_data.PRODUCTS_STOCK_IMG}</span>{/if}
					{if $module_data.PRODUCTS_PRICE}<div class="product_listing_price">{$module_data.PRODUCTS_PRICE}</div>
					{if $module_data.PRODUCTS_VPE}<span class="fs85">{#text_vpe#} {$module_data.PRODUCTS_VPE}</span><br />{/if}
					{if $module_data.PRODUCTS_MODEL}<span class="fs85">{#text_model#} {$module_data.PRODUCTS_MODEL}</span><br />{/if}
					{if $module_data.PRODUCTS_WEIGHT !=0}<span class="fs85">{#text_weight#} {$module_data.PRODUCTS_WEIGHT}</span><br />{/if}
					<span class="fs85">{$module_data.PRODUCTS_TAX_INFO}{$module_data.PRODUCTS_SHIPPING_LINK}</span><br />{/if}
					{$module_data.PRODUCTS_BUTTON_DETAILS} {$module_data.PRODUCTS_BUTTON_BUY_NOW} {$module_data.PRODUCTS_BUTTON_WISHLIST}
				</div>
	        </li>
		{/foreach}
	</ul>
	<br class="clearfix" />

{literal}
<script type="text/javascript">
    var max_height = 0;  
    {/literal}{if isset($CLASS)}{literal}
    $('#{/literal}{$CLASS}{literal} li').each(function(e) { 
    {/literal}{else}{literal}
    $('#li').each(function(e) { 
    {/literal}{/if}{literal} 
      h = $(this).height();  
      if(typeof(h) != "undefined") {  
            if(h > max_height) {  
                    max_height = h+10;  
            }  
      }  
    });  
    if(max_height > 0) { 
    {/literal}{if isset($CLASS)}{literal} 
     $('#{/literal}{$CLASS}{literal} li').height(max_height); 
     {/literal}{else}{literal}
     $('#li').height(max_height);  
     {/literal}{/if}{literal}
    }  
</script>
{/literal}	
{/if}


{if $cross_selling}
	{foreach name=aussen item=module_data from=$module_content}
		<h2>{$module_data.GROUP}</h2>
		<ul id="{if $ONLY_ONE == 'only_one'}product_listing_one{else}{$CLASS}{/if}" class="product_listing_gallery">
			{foreach item=products_data from=$module_data.PRODUCTS}
				<li class="{$products_data.COL_WIDTH} {if $products_data.COL_CLASS || $products_data.COL_SPECIAL}{$products_data.COL_CLASS}{$products_data.COL_SPECIAL}{/if} gallery_hover_item">
					{if $products_data.PRODUCTS_NAME}
						<h3 class="listing_h3 border_top_radius_6">
							<a href="{$products_data.PRODUCTS_LINK}" title="{$products_data.PRODUCTS_NAME}">
								{$products_data.PRODUCTS_NAME}
							</a>
						</h3>
					{/if}
					<div class="product_listing_gallery_image">
						<a href="{$products_data.PRODUCTS_LINK}" title="{$products_data.PRODUCTS_NAME}">
							<img class="img_border box_shadow" src="{$products_data.PRODUCTS_IMAGE}" {$products_data.PRODUCTS_IMAGE_DIMENSION} alt="{$products_data.PRODUCTS_IMAGE_ALT}" title="{$products_data.PRODUCTS_NAME}" />
						</a>
					</div>
				{if $products_data.PRODUCTS_DESCRIPTION}
					<div class="product_listing_gallery_detail_cat">
						{$products_data.PRODUCTS_DESCRIPTION}

					</div>
				{/if}					
					{if $products_data.CATEGORIES_NAME}
						<div class="ac">
							{#text_category#}<a href="{$products_data.CATEGORIES_LINK}">{$products_data.CATEGORIES_NAME}</a><br />
						</div>
					{/if}
					<div class="product_listing_gallery_price">
						{if $products_data.PRODUCTS_STOCK_IMG}<span class="fs85">{#text_stock#} {$products_data.PRODUCTS_STOCK_IMG}</span>{/if}
						{if $products_data.PRODUCTS_PRICE}<div class="product_listing_price">{$products_data.PRODUCTS_PRICE}</div>
						{if $products_data.PRODUCTS_VPE}<span class="fs85">{#text_vpe#} {$products_data.PRODUCTS_VPE}</span><br />{/if}
						{if $products_data.PRODUCTS_MODEL}<span class="fs85">{#text_model#} {$products_data.PRODUCTS_MODEL}</span><br />{/if}
						{if $products_data.PRODUCTS_WEIGHT !=0}<span class="fs85">{#text_weight#} {$products_data.PRODUCTS_WEIGHT}</span><br />{/if}
						<span class="fs85">{$products_data.PRODUCTS_TAX_INFO}{$products_data.PRODUCTS_SHIPPING_LINK}</span><br />{/if}
						{$products_data.PRODUCTS_BUTTON_DETAILS} {$products_data.PRODUCTS_BUTTON_BUY_NOW} {$products_data.PRODUCTS_BUTTON_WISHLIST}
					</div>
				</li>
			{/foreach}
		</ul>
		<br class="clearfix" />
	{/foreach}

{literal}
<script type="text/javascript">
    var max_height = 0;  
    {/literal}{if isset($CLASS)}{literal}
    $('#{/literal}{$CLASS}{literal} li').each(function(e) { 
    {/literal}{else}{literal}
    $('#li').each(function(e) { 
    {/literal}{/if}{literal} 
      h = $(this).height();  
      if(typeof(h) != "undefined") {  
            if(h > max_height) {  
                    max_height = h+30;  
            }  
      }  
    });  
    if(max_height > 0) { 
    {/literal}{if isset($CLASS)}{literal} 
     $('#{/literal}{$CLASS}{literal} li').height(max_height); 
     {/literal}{else}{literal}
     $('#li').height(max_height);  
     {/literal}{/if}{literal}
    }  
</script>
{/literal}	
{/if}


{if $product_filter_list}
	<ul id="{if $ONLY_ONE == 'only_one'}product_filter_one{else}{$CLASS}{/if}" class="product_listing_gallery">
		{foreach name=aussen item=module_data from=$module_content}
			<li class="{$module_data.COL_WIDTH} {if $module_data.COL_CLASS || $module_data.COL_SPECIAL}{$module_data.COL_CLASS}{$module_data.COL_SPECIAL}{/if} gallery_hover_item">
				{if $module_data.PRODUCTS_NAME}
					{if $module_data.PRODUCTS_PROXIMITY !=''}
						<div class="ac" style="background-color:{$module_data.PRODUCTS_PROXIMITY_COLOR}">
							{#text_proximity#}{$module_data.PRODUCTS_PROXIMITY}
						</div>
					{/if}
					<h3 class="listing_h3 border_top_radius_6">
						{if $module_data.PRODUCTS_REVIEWS}<div class="right product_listing_gallery_review">{$module_data.PRODUCTS_REVIEWS}</div>{/if}
						<a href="{$module_data.PRODUCTS_LINK}" title="{$module_data.PRODUCTS_NAME}">
							{$module_data.PRODUCTS_NAME}
						</a>
					</h3>
				{/if}
				<div class="product_listing_gallery_image">
					<a href="{$module_data.PRODUCTS_LINK}" title="{$module_data.PRODUCTS_NAME}">
						<img class="img_border box_shadow" src="{$module_data.PRODUCTS_IMAGE}" {$module_data.PRODUCTS_IMAGE_DIMENSION} alt="{$module_data.PRODUCTS_IMAGE_ALT}" title="{$module_data.PRODUCTS_NAME}" />
					</a>
				</div>

				{if $module_data.PRODUCTS_DESCRIPTION || $module_data.PRODUCTS_MANUFACTURER_IMG || $module_data.PRODUCTS_MANUFACTURER_NAME}
					<div class="product_listing_gallery_detail_cat">
						{$module_data.PRODUCTS_DESCRIPTION}
						{if $module_data.PRODUCTS_MANUFACTURER_IMG || $module_data.PRODUCTS_MANUFACTURER_NAME}
							{if $module_data.PRODUCTS_MANUFACTURER_URL}<a href="{$module_data.PRODUCTS_MANUFACTURER_URL}">{/if}
								{if $module_data.PRODUCTS_MANUFACTURER_IMG}
									<img src="{$module_data.PRODUCTS_MANUFACTURER_IMG}" alt="{$module_data.PRODUCTS_MANUFACTURER_NAME}" /><br />
								{/if}
								{$module_data.PRODUCTS_MANUFACTURER_NAME}
							{if $module_data.PRODUCTS_MANUFACTURER_URL}</a>{/if}
						{/if}
					</div>
				{/if}
				{if $module_data.CATEGORIES_NAME}
					<div class="ac">
						{#text_category#}<a href="{$module_data.CATEGORIES_LINK}">{$module_data.CATEGORIES_NAME}</a><br />
					</div>
				{/if}
				<div class="product_listing_gallery_price">
					{if $module_data.PRODUCTS_STOCK_IMG}<span class="fs85">{#text_stock#} {$module_data.PRODUCTS_STOCK_IMG}</span>{/if}
					{if $module_data.PRODUCTS_PRICE}<div class="product_listing_price">{$module_data.PRODUCTS_PRICE}</div>
					{if $module_data.PRODUCTS_VPE}<span class="fs85">{#text_vpe#} {$module_data.PRODUCTS_VPE}</span><br />{/if}
					{if $module_data.PRODUCTS_MODEL}<span class="fs85">{#text_model#} {$module_data.PRODUCTS_MODEL}</span><br />{/if}
					{if $module_data.PRODUCTS_WEIGHT !=0}<span class="fs85">{#text_weight#} {$module_data.PRODUCTS_WEIGHT}</span><br />{/if}
					<span class="fs85">{$module_data.PRODUCTS_TAX_INFO}{$module_data.PRODUCTS_SHIPPING_LINK}</span><br />{/if}
					{$module_data.PRODUCTS_BUTTON_DETAILS} {$module_data.PRODUCTS_BUTTON_BUY_NOW} {$module_data.PRODUCTS_BUTTON_WISHLIST}<br /><br />
				</div>
	          	{php} if($_POST['verbinder'] == 'false') { {/php}
	               
		                <table border="0" style="border: 1px solid #ccc" cellpadding="4">
			                <tr>
				                {foreach name=aussen item=search from=$FILTER_SEARCH}
				                	<td align="center" style="border-bottom: 1px solid #ccc">
				                		<strong><nobr>{$search.title}</nobr></strong>
				                	</td>
				                {/foreach}
				            </tr>
				            <tr>
				                {foreach name=aussen item=search from=$FILTER_SEARCH}
				                	<td align="center">
				                		{if $search.id|in_array:$module_data.FILTER_IDS}
				                			<img src="{$tpl_path}img/ja.gif" alt="" />
				                		{else}
				                			<img src="{$tpl_path}img/nein.gif" alt="" />
				                		{/if}
				                	</td>
				                {/foreach}
			                </tr>
		                </table><br />

	            {php} } {/php}
	        </li>
		{/foreach}
	</ul>
	<br class="clearfix" />
{literal}
<script type="text/javascript">
    var max_height = 0;  
    {/literal}{if isset($CLASS)}{literal}
    $('#{/literal}{$CLASS}{literal} li').each(function(e) { 
    {/literal}{else}{literal}
    $('#li').each(function(e) { 
    {/literal}{/if}{literal} 
      h = $(this).height();  
      if(typeof(h) != "undefined") {  
            if(h > max_height) {  
                    max_height = h;  
            }  
      }  
    });  
    if(max_height > 0) { 
    {/literal}{if isset($CLASS)}{literal} 
     $('#{/literal}{$CLASS}{literal} li').height(max_height); 
     {/literal}{else}{literal}
     $('#li').height(max_height);  
     {/literal}{/if}{literal}
    }  
</script>
{/literal}		
{/if}

</section><br />

{if $CATEGORIES_DESCRIPTION_FOOTER !=''}
	<div class="db">
		{$CATEGORIES_DESCRIPTION_FOOTER}<br /><br />
	<br class="clearfix" />	
	</div>
{/if}

{if $NAVIGATION != ''}
{$NAVIGATION}
{/if}

{literal}
<script type="text/javascript">
jQuery(document).ready(function() {
	jQuery('.gallery_item').hover(function() {
		jQuery(this).addClass('gallery_item_hover');
	}, function() {
		jQuery(this).removeClass('gallery_item_hover');
	});
	jQuery('.only_one').hover(function() {
		jQuery(this).addClass('gallery_item_hover');
	}, function() {
		jQuery(this).removeClass('gallery_item_hover');
	});	
});
</script>
{/literal}


